<?php slot('bannersOnBottomWidget') ?>
<?php if ($banners->count()): ?>
    <ul id="bannersOnBottom" class="clearfix">
        <?php foreach ($banners as $key => $banner): ?>
            <li>
                <a href="<?php echo $banner['link']; ?>" target="_blank"><img src="<?php echo @myPicture::getInstance($banner->getPicture())->url() ?>" alt="<?php echo $banner['name']; ?>" /></a>
            </li>

        <?php endforeach; ?>
    </ul>
<?php endif; ?>
<script type="text/javascript">

var width = 0;
$('#bannersOnBottom > LI').each(function(){
    width = width + $(this).outerWidth(true);
});
if(width < 955 ){
    $('#bannersOnBottom').width(width);
}
</script>

<?php end_slot() ?>
